import {request} from 'umi'
import {IMailItem} from '../../utils/mail'

export let getMailList = (current:number)=>{
    return request(`/smtp?page=${current?current:'1'}&pageSize=12`)
}

export let filterMailList = (obj:IMailItem)=>{
    return request(`/smtp?page=1&pageSize=12&from=${obj.from?obj.from:''}&to=${obj.to?obj.to:''}&subject=${obj.subject?obj.subject:''}`)
}



